package com.zzy.demo.web;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
 * @author guokaige
 *
 */
@Controller
public class IndexController {

	@Autowired
	RedisTemplate<String, String> redisTemplate;

	@RequestMapping({ "/", "/index" })
	@ResponseBody
	public String index(HttpServletRequest request, ModelMap modelMap) {
		return "index";
	}

}
